package com.capgemini.scaffold.common;

import lombok.Getter;

public enum ExceptionEnum {

    DUPLICATE_USER_ACCOUNT(1001, "用户账号已存在"),
    NONENTITY_USER_ACCOUNT(1002,"用户账号不存在"),
    ENTERED_PASSWORDS_DIFFER(1003,"密码错误"),
    FIND_USER_FAIL(1004,"获取用户信息失败"),
    USER_NOT_LOGIN(1005,"用户未登录"),
    TOKEN_IS_NULL(1006,"TOKEN为空"),
    USER_NOT_PERMISSION(1007,"当前用户没有权限"),
    UPDATE_USER_FAIL(1008,"修改用户信息失败"),
    UPDATE_USER_ACCOUNT(1009,"账号重复"),
    DELETE_INTERN_INFORMATION(4001,"删除数据不存在"),
    DELETE_INTERN_INFORMATIONS(4002,"删除数据产生未知的异常"),
    INSERT_DATA_DUPLICATION(4003,"插入数据同一批电话号重复"),
    UPDATE_DATA_ALREADY(4004,"更新数据已优化"),
    UPDATE_DATA_DUPLICATION(4005,"修改数据同一批电话号重复"),
    INSERT_DATA_NULL(4006,"插入入数据有某条为空"),
    UPDATE_DATA_NULL(4007,"修改数据有一条为空"),
    INSERTING_DATA_EXCEPTION(4101,"插入数据产生未知异常"),
    INSERT_TUTORDATA_NULL(4102,"插入数据某一条为空"),
    UPDATE_TUTORDATA_NULL(4103,"修改数据某一条"),
    UPDATE_TUTORDATA_EXCEPTION(4104,"修改数据产生未知异常");

    @Getter
    private int code;
    @Getter
    private String message;

    ExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
